//package Text4;
//
//public class OUT {
//    private int n1=10;
//    public void menutine(){
////        Tigter tigter = new Tigter();
////        tigter.cry();
//       IA tiger= new IA(){
//            public void cry(){
//                System.out.println("老虎叫...");
//            }
//        };
//       tiger.cry();
//    }
//}
//interface IA{
//    void cry();
//}
////class Tigter implements IA{
////    @Override
////    public void cry() {
////        System.out.println("老虎叫...");
////    }
////}
package Text4;
public class OUT {
    public void menutine(){
       new Father("zc"){
        }.fun();
    }
}
class Father{
    private String name;
    public Father(String name) {
        this.name = name;
    }
    public void fun(){
        System.out.println("name:"+this.name);
    }

}